This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Aug 4, 2016, 4:45 AM
6 Posts

Domino Access Services

  • Category: Other
  • Platform: All Platforms
  • Release: 9.0
  • Role: Developer
  • Tags: RESTful Services
  • Replies: 1

Hi All,

I am trying to use Domino Access Services, the below specifed url is returning all the documents and with only limited attributes (unid, href, modified)

http://<DominoHost>/<Database>/api/data/documents/.

Response:

{
      "@modified":"2015-07-24T14:45:59Z",
      "@unid":"B43BE6E86F20F16D8525729F004FE59C",
      "@href":"http:\/\/hostname:80\/dbname.nsf\/api\/data\/documents\/\/unid\/B43BE6E86F20F16D8525729F004FE59C"
  },
  {
      "@modified":"2015-07-24T14:45:59Z",
      "@unid":"A81AE876D3D29E078525729F004FE59D",
      "@href":"http:\/\/hostname:80\/dbname.nsf\/api\/data\/documents\/\/unid\/A81AE876D3D29E078525729F004FE59D"
  }

Inorder to get the complete list of attributes i have to make addtional request with the corresponding @href link which i cannot do for each document because i have documents in lakhs.

Questions:

1. Is there any to get all the attributes for each returned document in the same call (http://<DominoHost>/<Database>/api/data/documents/.)????

2. Is there any way to get only accounts or only groups sperately?? i.e., request with filter on type (Person/Group) so that one request should return all the accounts and the other should return all the groups. 

 

 

 

Aug 4, 2016, 10:03 PM
323 Posts
Vague memories ... what do you want to get?

It depends what you're looking for by your word, "attribute".

Using Access Services may incur more than one call; or you may be able to get it using a view.

A view might help, it'll get you the column values in the view, for each document.

It looks like there's a "View/Folder Entries GET" request that could fill in for multiple docs.

 

I haven't worked with Domino Access Services itself, but I'm familiar with the older CGI requests that could easily get you the UNID & certain field values. They'd just be in view columns.

http://site/dbpath/viewname?ReadViewEntries&outputformat=JSON

There's a limit on the count of row entries you can retrieve. I think there's a way to kick it up to something like 999 rows, but I know there's a limit.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal